// 自动生成模板BcRecord
package bc

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// bcRecord表 结构体  BcRecord
type BcRecord struct {
	global.GVA_MODEL
	Code          string  `json:"code" form:"code" gorm:"column:code;comment:验证码;size:255;"`                              //验证码
	PhoneNumber   string  `json:"phoneNumber" form:"phoneNumber" gorm:"column:phone_number;comment:手机号;size:255;"`        //手机号
	ProjectId     int     `json:"projectId" form:"projectId" gorm:"column:project_id;comment:项目id;size:19;"`              //项目id
	ProjectName   string  `json:"projectName" form:"projectName" gorm:"column:project_name;comment:项目;size:255;"`         //项目
	SettleOffice  string  `json:"settleOffice" form:"settleOffice" gorm:"column:settle_office;comment:所属;size:255;"`      //所属
	Status        int     `json:"status" form:"status" gorm:"column:status;comment:默认已取号0 已到码未取走1  已取码2;size:19;"`        //默认已取号0 已到码未取走1  已取码2
	SuperiorsName string  `json:"superiorsName" form:"superiorsName" gorm:"column:superiors_name;comment:上级用户;size:255;"` //上级用户
	SysUserName   string  `json:"sysUserName" form:"sysUserName" gorm:"column:sys_user_name;comment:用户;size:255;"`        //用户
	UserPrice     float64 `json:"userPrice" form:"userPrice" gorm:"column:user_price;comment:用户价;size:255;"`              //用户身上的用户价
}

type BcRecordReq struct {
	PhoneNumber string `json:"phoneNumber" form:"phoneNumber" ` //手机号
	ProjectId   int    `json:"projectId" form:"projectId" `     //项目id
	Token       string `json:"token" form:"token" `             //项目id
}

// TableName bcRecord表 BcRecord自定义表名 bc_record
func (BcRecord) TableName() string {
	return "bc_record"
}
